package com.zjcode.cdcer.mapper;

import com.chinatechstar.component.commons.supports.PageData;
import com.zjcode.cdcer.model.CerTreatmentInfo;
import com.zjcode.cdcer.model.CerTreatmentOfficalInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.LinkedHashMap;
import java.util.List;

@Mapper
public interface CerTreatmentInfoMapper {

    void addCerTreatmentInfo(@Param("cerTreatmentInfo") CerTreatmentInfo cerTreatmentInfo);

    void updateCerTreatmentInfoById(@Param("cerTreatmentInfo") CerTreatmentInfo cerTreatmentInfo);

    CerTreatmentInfo getCerTreatmentInfoById(@Param("id") String id);
    Integer getCountBysysteminitId(@Param("systeminitId") String systeminitId);

    List<LinkedHashMap<String, Object>> findAllList(@Param("pageData") PageData pageData);

    int deleteById(@Param("id") String id);

    void updateTreatmentInfoStatus(@Param("pageData") PageData pageData);

    List<CerTreatmentInfo> getTreatmentInfoByIds(@Param("ids") List<String> ids);

    void setIsPublishByInfoIds(@Param("ids") List<String> ids);

    List<LinkedHashMap<String, Object>> queryAllExportData(@Param("ids") List<String> ids,
                                                           @Param("idsData") Object idsData, @Param("pageData") PageData pageData);

    List<LinkedHashMap<String, Object>> selBlNumByOrgId(@Param("orgIdList") List<Long> orgIdList, @Param("isZl") Integer isZl, @Param("screeningType") Integer screeningType, @Param("pageData") PageData pageData);

    List<CerTreatmentInfo> getDataByInitId(@Param("initId") String initId);

    int addBatchCerTreatmentInfo(@Param("infoList") List<CerTreatmentInfo> infoList);

    Integer selTreatmentNum(@Param("isZl") String isZl, @Param("year") String year);

    List<CerTreatmentInfo> getTreatmentByInitId(@Param("initIds") List<String> initIds);

}
